#ifndef RESOURCE_H
#define RESOURCE_H

#include "Prerequisites.hpp"
#include "OS/resourceallocator.h"

class Resource

{
public:
    Resource(int parentId,String rName,bool use);
    ~Resource();
    String name;
    int pID;
    int resID;
    intListBase waitingList;
    bool inUse;
    ElementsBase* elementas;
    int getFreeElements();
    void addToWaitingList(int waitingId);
    void removeFromWaitingList();
    ElementsBase* getElement();
};

#endif // RESOURCE_H
